let obj = {
    id: 123,
    idInfo: 12,
    field1: 1,
    field2: 2,
    field3: 3,
    field4: 4,
}



/**
 * 重置对象值
 * @param obj 对象
 * @param fillValue 重置时赋予默认值
 * @param ignoreFields 忽略的属性值
 */
let objResect = function (obj = {}, fillValue = null, ignoreFields = []) {
    for (let field in obj) {
        // field is not contains ignore is fiell default value
        if (ignoreFields.indexOf(field) < 0) {
            obj[field] = fillValue;
        }
    }
}
